﻿namespace Sliver.Network.WebSocket
{
    public static class WebSocketMessageType
    {
        /// <summary>
        /// 'service' 消息需要服务器处理
        /// </summary>
        public const string Service = "service";

        /// <summary>
        /// 一般信息，直接转发
        /// </summary>
        public const string Info = "info";

        /// <summary>
        /// 聊天信息，直接转发
        /// </summary>
        public const string Chat = "chat";

        /// <summary>
        /// 客户端的action消息在未回执情况下会阻塞其他的action消息
        /// </summary>
        public const string Action = "action";

        /// <summary>
        /// 服务器相对Action的回执，表示此Action已经完成
        /// </summary>
        public const string OK = "ok";

        /// <summary>
        /// 拒绝此action
        /// </summary>
        public const string Deny = "deny";

        /// <summary>
        /// 表示action同步失败
        /// </summary>
        public const string Error = "error";

        /// <summary>
        /// 心跳消息
        /// </summary>
        public const string Heart = "heart";
    }

}
